package com.kgc.skProvider.controller;

import com.kgc.basic.util.ResponseMsg;
import com.kgc.collection.remote.CwOtherIncomeRemote;
import com.kgc.skProvider.service.CwOtherIncomeService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import java.util.Map;

@Controller
public class CwOtherIncomeController implements CwOtherIncomeRemote {

    private Logger logger= LoggerFactory.getLogger(CwOtherIncomeController.class);

    @Autowired
    private CwOtherIncomeService cwOtherIncomeService;

    @Override
    public ResponseMsg selectCwOtherIncomeByPage(Map<String, Object> map) {
        logger.info("CwOtherIncomeController selectCwOtherIncomeByPage params {}",map.toString());
        ResponseMsg responseMsg=cwOtherIncomeService.selectCwOtherIncomeByPage(map);
        logger.debug("CwOtherIncomeController selectCwOtherIncomeByPage return{}",responseMsg);
        return responseMsg;
    }

    @Override
    public ResponseMsg selectCwOtherIncomeByCode(Map<String, Object> map) {
        logger.info("CwOtherIncomeController selectCwOtherIncomeByCode params {}",map.toString());
        ResponseMsg responseMsg=cwOtherIncomeService.selectCwOtherIncomeByCode(map);
        logger.debug("CwOtherIncomeController selectCwOtherIncomeByCode return{}",responseMsg);
        return responseMsg;
    }

    @Override
    public ResponseMsg updateCwOtherIncome(Map<String, Object> map) {
        logger.info("CwOtherIncomeController updateCwOtherIncome params {}",map.toString());
        ResponseMsg responseMsg=cwOtherIncomeService.updateCwOtherIncome(map);
        logger.debug("CwOtherIncomeController updateCwOtherIncome return{}",responseMsg);
        return responseMsg;
    }

    @Override
    public ResponseMsg insertCwOtherIncome(Map<String, Object> map) {
        logger.info("CwOtherIncomeController insertCwOtherIncome params {}",map.toString());
        ResponseMsg responseMsg=cwOtherIncomeService.insertCwOtherIncome(map);
        logger.debug("CwOtherIncomeController insertCwOtherIncome return{}",responseMsg);
        return responseMsg;
    }

    @Override
    public ResponseMsg deleteCwOtherIncome(Map<String, Object> map) {
        logger.info("CwOtherIncomeController deleteCwOtherIncome params {}",map.toString());
        ResponseMsg responseMsg=cwOtherIncomeService.deleteCwOtherIncome(map);
        logger.debug("CwOtherIncomeController deleteCwOtherIncome return{}",responseMsg);
        return responseMsg;
    }

    @Override
    public ResponseMsg checkCwOtherIncome(Map<String, Object> map) {
        logger.info("CwOtherIncomeController checkCwOtherIncome params {}",map.toString());
        ResponseMsg responseMsg=cwOtherIncomeService.checkCwOtherIncome(map);
        logger.debug("CwOtherIncomeController checkCwOtherIncome return{}",responseMsg);
        return responseMsg;
    }
}
